package cn.edu.lingnan.fruitshop.service;

import cn.edu.lingnan.fruitshop.common.JSONResult;
import cn.edu.lingnan.fruitshop.pojo.Carttable;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张小凡
 * @since 2022-01-04
 */
public interface CarttableService extends IService<Carttable> {

    //加入购物车
    JSONResult<Void>cartInfo(HttpSession session, Integer goodId,Integer num);

    //查看我的购物车
    public String myCart(HttpSession session,Model model);

    //删除一条购物车记录
    public String deleteOneCart(Integer cartId);
}
